﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Net5ApiANdWpfClient.Lib.Model.SystemAdmin
{
    public class AdminUser
    {
        public AdminUser()
        { }
        #region Model

        public string Token { get; set; }

		/// <summary>
		/// 编号
		/// </summary>
		public string op_card
		{
			get; set;
		}
		/// <summary>
		/// 操作员姓名
		/// </summary>
		public int op_id
		{
			get; set;
		}
        /// <summary>
        /// 公司名称
        /// </summary>
        public string op_position_name
        {
            get; set;
        }
        /// <summary>
        /// 手机号
        /// </summary>
        public string op_phone
        {
            get; set;
        }
        /// <summary>
        /// 角色名称id
        /// </summary>
        public int op_role
        {
            get; set;
        }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime op_createtime
        {
            get; set;
        }


        /// <summary>
        /// 状态
        /// </summary>
        public int op_state
        {
            get; set;
        }
        /// <summary>
        /// 密码
        /// </summary>
        public string op_pwd
        {
            get; set;
        }
        /// <summary>
        /// 账号 
        /// </summary>
        public string op_account
        {
            get; set;
        }

        //角色名称
        public string RoleName { get; set; }
        //员工名称
        public string userName { get; set; }
        //部门id
        public int departmentId { get; set; }
        #endregion Model


        public string StatusDescribe { get {
              return op_state == 1 ? "有效" :"无效";
            } }
    }
}
